﻿using Cognex.VisionPro.PMAlign;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Delta
{
    public partial class CogPMAlignToolForm : Form
    {
        PMAlignToolForm ToolForm;


        public CogPMAlignToolForm(PMAlignToolForm form)
        {
            InitializeComponent();
            ToolForm = form;
        }

        private void CogPMAlignToolForm_Load(object sender, EventArgs e)
        {
            cogPMAlignEditV21.Subject = ToolForm.PMAlignTool;
        }

        private void CogPMAlignToolForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            ToolForm.bRun.PerformClick();
        }
    }
}
